<?php
namespace app\admin\controller;

use daswork\Session;
use app\admin\model\SendEmail;

Class Index
{
    public function index()
    {
        echo "This is demo module";
    }

    public function test()
    {
        $session = new Session();
        $session->set('tt', 12234);
        echo "ttttt";
    }

    public function testSession()
    {
        $session = new Session();
        $tt = $session->get('tt');
        echo $tt;
    }

    public function testModel()
    {
        $model = new SendEmail();
        // var_dump($model->list());
        print_json($model->list('limit 10'));
    }
}
